package com.wabbei.friendcenter.action;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Random;

public class ReNameUtil {
		//get a new Name 2012/12/12 by zm
		//example year +month+day +Hour+second+minutes +random 6 numbers
		public static  String GetNewName(){
			Random r=new Random();
			SimpleDateFormat sdf=new SimpleDateFormat("yyyyMMddHHmmss");
			StringBuffer newName=new StringBuffer();
			newName.append(sdf.format(new Date()));	
			for(int i=0;i<6;i++){
				int j=r.nextInt(10);
				newName.append(j);
			}
			return newName.toString();
		}
}
